<?php $this->load->view('Admin/navbar');?>
  <!-- Tab panes -->
  <div class="tab-content" style="margin-top: 10px;">
    <div role="tabpanel" class="tab-pane" id="<?=$focusTag?>">
		<form class="form-inline" method="GET" name="query" id="query">
		<input type="hidden" name="c" id="c" value="<?=$_GET['c']?>">
		<input type="hidden" name="m" id="m" value="<?=$_GET['m']?>">
		<input type="hidden" name="tab" id="tab" value="<?=$_GET['tab']?>">
		<div class="form-group">
		    <label for="year">数据类型：</label>
		    <select class="form-control" id="type" name="type">
		      <option value="">全部</option>
		      <?php foreach($typeList as $k=>$v){ ?>
		      <option value="<?php echo $k; ?>" <?php echo $type==$k?'selected':'' ?>><?php echo $v; ?></option>
		      <?php } ?>
			</select>
	  	</div>
	  	<div class="form-group">
		    <label for="year">订单号：</label>
		    <input type="text" class="form-control" id="orderId" name="orderId" value="<?php echo $orderId; ?>" placeholder="订单号">
	  	</div>
	  	<div class="form-group">
		    <label for="year">活动编号：</label>
		    <input type="text" class="form-control" id="activityId" name="activityId" value="<?php echo $activityId; ?>" placeholder="活动编号">
	  	</div>
	  	<div class="form-group">
		    <label for="year">流水号：</label>
		    <input type="text" class="form-control" id="costNo" name="costNo" value="<?php echo $costNo； ?>" placeholder="流水号">
	  	</div>
		  <div class="form-group">
		  	<button type="submit" class="btn btn-default btn-primary">搜索</button>
		  </div>
		</form>
    	<table style="margin-top: 10px;" class="table table-bordered table-condensed">
			<thead>
			  <tr>
			    <th class="bg-primary text-center">序号</th>
			    <th class="bg-primary text-center">日志类型</th>
			    <th class="bg-primary text-center">活动编号</th>
			    <th class="bg-primary text-center">流水号</th>
			    <th class="bg-primary text-center">订单号</th>
			    <th class="bg-primary text-center">同步状态</th>
			    <th class="bg-primary text-center">数据</th>
			    <th class="bg-primary text-center">创建时间</th>
			  </tr>
			</thead>
			<tbody>
			<?php foreach ($list as $k => $v) {?>
			  <tr>
			  	<td><?=$v['id']?></td>
			  	<td><?=$v['typeName']?></td>
			  	<td><?=$v['activityId']?></td>
			  	<td><?=$v['costNo']?></td>
			  	<td><?=$v['orderId']?></td>
			  	<td><?=$v['isSync'] == 1?'<font color="green">同步成功</font>':'<font color="red">同步失败</font>'?></td>
			  	<td><?=$v['dataStr']?></td>
			  	<td><?=$v['createTime']?></td>
			  </tr>
			<?php } ?>
			</tbody>
		</table>
    </div>
    <!-- 分页 -->
      <?=$pager?>
</div>
<?php $this->load->view('Admin/foot');?>